#include "CDialog.h"

CDialog::CDialog(QWidget* parent, const QString& title, const QString& content) :
    QDialog(parent)
{
    ui.setupUi(this);
    setWindowTitle(title);
    ui.edt_content->append(content);

    connect(ui.btn_close, SIGNAL(clicked()), this, SLOT(accept()));
}